package dgut.haitaobao.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data

@TableName(value = "users",autoResultMap =true )
public class User {
    @TableId(value = "user_id",type = IdType.INPUT)
    private Integer userId;
    @TableField(value = "username")
    private String userName;
    @TableField(value = "password")
    private String  password;
    @TableField(value = "nickname")
    private String nickname;
    @TableField(value = "realname")
    private String realName;
    @TableField(value = "user_img")
    private String  userImag;
    @TableField(value = "user_mobile")
    private String  userMobile;
    @TableField(value = "user_email")
    private String  userEmail;
    @TableField(value = "user_sex")
    private String  userSex;
    @TableField(value = "user_birth")
    private Date userBirth;
    @TableField(value = "user_regtime")
    private Date userRegtime;
    @TableField(value = "user_modtime")
    private Date userModtime;
}
